package cn.iocoder.yudao.module.hs.controller.admin.sap.vo;

import cn.iocoder.yudao.framework.common.util.date.DateUtils;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - SAP领料单信息同步 VO")
@Data
public class RawMaterialOrderSyncVO {

    @Schema(description = "领料单号", example = "1001772911")
    private String code;

    @Schema(description = "领料单行号", example = "SZ10")
    private String rawMaterialOrderNo;

    @Schema(description = "物料代码", example = "AL-X008-R0000")
    private String modeCode;

    @Schema(description = "数量", example = "396")
    private Integer materialCount;

    @Schema(description = "发货地点", example = "SZ10")
    private String fromWarehouseCode;

    @Schema(description = "收货地点", example = "BDL0")
    private String toWarehouseCode;

    @Schema(description = "凭证日期", example = "20250707")
    @DateTimeFormat(pattern = DateUtils.FORMAT_YEAR_MONTH_DAY_NO_LINE)
    @JsonFormat(pattern = "yyyyMMdd", shape = JsonFormat.Shape.STRING)
    private LocalDate recordDate;
}
